home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / xmcd-1.4 / libdi.d / device.cfg < prev    next >
Encoding:
Text File  |  1995-05-10  |  9.3 KB  |  276 lines

  1. !
  2. ! @(#)device.cfg    5.6 94/12/28
  3. !
  4. ! Device-specific configuration file
  5. !
  6. !   xmcd  - Motif(tm) CD Audio Player
  7. !   cda   - Command-line CD Audio Player
  8. !   libdi - CD Audio Player Device Interface Library
  9. !
  10. !   Copyright (C) 1995  Ti Kan
  11. !   E-mail: ti@amb.org
  12. !
  13. !   This program is free software; you can redistribute it and/or modify
  14. !   it under the terms of the GNU General Public License as published by
  15. !   the Free Software Foundation; either version 2 of the License, or
  16. !   (at your option) any later version.
  17. !
  18. !   This program is distributed in the hope that it will be useful,
  19. !   but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. !   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  21. !   GNU General Public License for more details.
  22. !
  23. !   You should have received a copy of the GNU General Public License
  24. !   along with this program; if not, write to the Free Software
  25. !   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  26. !
  27. ! Install this file as LIBDIR/config/DEVNAME, and edit to suit the
  28. ! capability of the CD-ROM device.  LIBDIR is the XMcd.libdir resource
  29. ! (or XMCD_LIBDIR env variable) and DEVNAME is the device node path
  30. ! basename.
  31. !
  32. ! Users can also override some of these parameters by specifying them
  33. ! in an optional $HOME/.xmcdcfg/DEVNAME file.  Parameters that are
  34. ! labeled as "No-override" are privileged and cannot be overridden
  35. ! by the user in their private configuration files.
  36. !
  37. ! cfgver=1    Do not remove this line.
  38. !
  39.  
  40. ! The logical drive number that you want this device to map to.  This
  41. ! number is displayed on the main window title bar.
  42. ! (No-override)
  43. !
  44. logicalDriveNumber:    0
  45.  
  46. ! Device Interface Method: Configure xmcd/cda to control the CD-ROM device
  47. ! via one of several methods.
  48. !
  49. ! Note:
  50. ! Changing this parameter is useful only if your xmcd/cda binary is
  51. ! compiled to support the selected method.
  52. !
  53. ! The supported methods are:
  54. ! 0    SCSI pass-through method    (Use this for most systems)
  55. ! 1    SunOS/Linux ioctl method    (For non-SCSI CD-ROM drives on Linux)
  56. !
  57. ! (No-override)
  58. !
  59. deviceInterfaceMethod:    0
  60.  
  61. ! CD-ROM drive vendor code.  If your CD-ROM drive is not SCSI-2 compliant,
  62. ! this is used to specify that xmcd should issue vendor-unique commands
  63. ! rather than SCSI-2 commands.
  64. !
  65. ! Note:
  66. ! a) Changing this parameter is useful only if your xmcd/cda binary is
  67. !    compiled to provide vendor-unique commands support.
  68. ! b) The existence of a vendor-unique module does not imply that all
  69. !    models of CD-ROM made by that manufacturer must use the vendor-
  70. !    unique mode.  For example, the Toshiba XM-3301/3401 and Sony
  71. !    CDU-541/561 are SCSI-2 compliant and should use vendor code 0.
  72. !
  73. ! The supported codes are:
  74. ! 0    SCSI-2 standard
  75. ! 1    Chinon vendor-unique
  76. ! 2    Hitachi vendor-unique
  77. ! 3    NEC vendor-unique
  78. ! 4    Pioneer vendor-unique
  79. ! 5    Sony vendor-unique
  80. ! 6    Toshiba vendor-unique
  81. !
  82. ! (No-override)
  83. !
  84. driveVendorCode:    0
  85.  
  86. ! The base SCSI audio volume value that corresponds to the minimum
  87. ! setting of the volume control slider.  This is used to adjust the
  88. ! range of audio volume control.  The legal range is 0 to 255.
  89. ! This parameter is used only if volumeControlSupport is True.
  90. ! (No-override)
  91. !
  92. scsiAudioVolumeBase:    0
  93.  
  94. ! For any given play audio command, the minimum number of audio blocks
  95. ! that must be played.  Some CD-ROM drives have a minimum limit.
  96. ! Each block represents 1/75 second of audio.
  97. ! (No-override)
  98. !
  99. minimumPlayBlocks:    25
  100.  
  101. ! If the CD-ROM drive is SCSI-2 compliant,  this parameter specifies
  102. ! whether it supports the Play Audio (10) SCSI command.  This command
  103. ! is used only as a fallback to the Play Audio (12) and Play Audio MSF
  104. ! commands in case they fail.
  105. ! (No-override)
  106. !
  107. playAudio10Support:    True
  108.  
  109. ! If the CD-ROM drive is SCSI-2 compliant, this parameter specifies
  110. ! whether it supports the Play Audio (12) SCSI command.  The drive
  111. ! must support one of Play Audio (12) or Play Audio MSF in order to
  112. ! be useful with xmcd.
  113. ! (No-override)
  114. !
  115. playAudio12Support:    False
  116.  
  117. ! If the CD-ROM drive is SCSI-2 compliant, this parameter specifies
  118. ! Whether it supports the Play Audio MSF SCSI command. The drive
  119. ! must support one of Play Audio (12) or Play Audio MSF in order
  120. ! to be useful with xmcd.
  121. ! (No-override)
  122. !
  123. playAudioMSFSupport:    True
  124.  
  125. ! If the CD-ROM drive is SCSI-2 compliant,  this parameter specifies
  126. ! Whether it supports the Play Audio Track/Index SCSI command.  This
  127. ! command must be supported in order to use the Prev Index and Next
  128. ! Index buttons.
  129. ! (No-override)
  130. !
  131. playAudioTISupport:    True
  132.  
  133. ! Whether the CD-ROM drive supports the disc load feature of the
  134. ! Start/Stop Unit SCSI command.
  135. ! (No-override)
  136. !
  137. loadSupport:        False
  138.  
  139. ! Whether the CD-ROM drive supports the disc eject feature of the
  140. ! Start/Stop Unit SCSI command.  If this item is False, it will also
  141. ! automatically force the caddyLockSupport parameter below to False.
  142. ! (No-override)
  143. !
  144. ejectSupport:        True
  145.  
  146. ! Whether the block descriptor should be disabled in the
  147. ! mode sense/mode select command data.  You may need to change this
  148. ! setting to get the volume control slider to work on some SCSI-2
  149. ! CD-ROM drives.
  150. ! (No-override)
  151. !
  152. modeSenseSetDBD:    False
  153.  
  154. ! Whether the CD-ROM drive supports setting the audio playback volume
  155. ! in software.  For SCSI-2 drives, this means the audio page (0xE) of
  156. ! the Mode Select SCSI command.  For SCSI-1 drives, this is vendor-
  157. ! unique.
  158. ! (No-override)
  159. !
  160. volumeControlSupport:    True
  161.  
  162. ! Whether the CD-ROM drive supports setting the audio playback volume
  163. ! of the stereo channels independently.  This support is required
  164. ! for the Balance Control slider to function.  The volumeControlSupport
  165. ! parameter above must be True for this to have any effect.
  166. ! (No-override)
  167. !
  168. balanceControlSupport:    False
  169.  
  170. ! Whether the CD-ROM drive supports setting output channel routing.
  171. ! This support is required for the channel routing selector to function.
  172. ! (No-override)
  173. !
  174. channelRouteSupport:    False
  175.  
  176. ! If the CD-ROM drive is SCSI-2 compliant,  this parameter specifies
  177. ! whether it supports the Pause/Resume SCSI command.
  178. ! (No-override)
  179. !
  180. pauseResumeSupport:    True
  181.  
  182. ! Whether the CD-ROM drive supports the Prevent/Allow Medium Removal
  183. ! SCSI command.  If this item is False, it will also automatically
  184. ! force the caddyLock parameter to False.
  185. ! (No-override)
  186. !
  187. caddyLockSupport:    True
  188.  
  189. ! Whether the CD-ROM drive supports data format code 1 (CD-ROM Current
  190. ! Position Data) of the Read Subchannel SCSI command.  If this item is
  191. ! False, data format code 0 (Sub-Q Channel Data) will be used instead.
  192. ! (No-override)
  193. !
  194. curposFormat:        False
  195.  
  196. ! Whether the CD-ROM drive fails the Test Unit Ready SCSI command
  197. ! when it is playing audio.
  198. ! (No-override)
  199. !
  200. noTURWhenPlaying:    False
  201.  
  202. ! Select the volume control taper curve.  You may need to experiment
  203. ! with this parameter to get the smoothest range of control from the
  204. ! volume control slider. This parameter is used only if
  205. ! volumeControlSupport is True.
  206. !
  207. ! Supported values for this parameter:
  208. ! 0    Apply a linear taper.
  209. ! 1    Apply a squared taper (Small change at low settings,
  210. !    increasing as the slider moves toward the upper range).
  211. ! 2    Apply an inverse-squared taper (big change at low settings,
  212. !    diminishing as the slider moves toward the upper range).
  213. !
  214. volumeControlTaper:    0
  215.  
  216. ! Select the channel routing.  This parameter is used only if
  217. ! channelRouteSupport is True.
  218. !
  219. ! Supported values for this parameter (0 and 1 are the audio channels on
  220. ! the CD, L and R are the output channels):
  221. ! 0    Normal stereo:    0->L, 1->R
  222. ! 1    Reverse stereo:    0->R, 1->L
  223. ! 2    Mono-L:        0->L, 0->R
  224. ! 3    Mono-R:        1->L, 1->R    
  225. ! 4    Mono-L+R:    0+1->L, 0+1->R
  226. !
  227. channelRoute:        0
  228.  
  229. ! Whether to disable the CD-ROM drive front panel eject button when
  230. ! a disc is loaded.  Normally this should be set to True.  See also
  231. ! the caddyLockSupport and ejectSupport parameters.
  232. caddyLock:              True
  233.  
  234. ! Whether the CD should be spun-down after it is loaded.  This reduces
  235. ! wear on the drive if there won't be any audio playback activity for
  236. ! a while.
  237. spinDownOnLoad:        True
  238.  
  239. ! Whether the CD should automatically start playing when it is loaded.
  240. ! This parameter, if set to True, overrides spinDownOnLoad.
  241. playOnLoad:        False
  242.  
  243. ! Whether the CD should be automatically ejected when done playing.
  244. ! "Done" means finished playing the last track on the CD in normal
  245. ! mode, or the last track in the shuffle or program mode play sequence.
  246. ! This option is only effective if ejectSupport is True.
  247. ejectOnDone:        False
  248.  
  249. ! Whether the CD should be ejected on program exit.
  250. ! This option is only effective if ejectSupport is True.
  251. ejectOnExit:        False
  252.  
  253. ! Whether the CD should be stopped on program exit.
  254. stopOnExit:        True
  255.  
  256. ! Whether xmcd should exit when the CD is ejected.  Although this is
  257. ! a generic option, it is added primarily to make xmcd run better
  258. ! under Sun Solaris 2.x's Volume Manager.
  259. ! This option is only effective if ejectSupport is True.
  260. !
  261. ! Note: If this parameter is set to True, then xmcd will exit after
  262. ! the CD is ejected, without the usual confirmation dialog box (as you
  263. ! would get when pressing the Quit button).
  264. exitOnEject:        False
  265.  
  266. ! Whether xmcd should close the device when the CD is ejected.
  267. ! Although this is a generic option, it is added primarily to make
  268. ! xmcd run better under Sun Solaris 2.x's Volume Manager.
  269. ! This option is only effective if ejectSupport is True.
  270. !
  271. ! Note: If this parameter is set to True, then the device will be re-opened
  272. ! when a new CD is loaded.  The "exitOnEject" parameter takes precedence
  273. ! over this one.
  274. closeOnEject:        False
  275.  
  276.